//导入 mongoose
//const { time } = require('@pupbot/core');
const mongoose = require('mongoose');
//创建文档的结构对象
//设置集合中文档的属性以及属性值的类型
let billSchema = new mongoose.Schema({

  order_id:String,
  number:Number,
  buyer:String,
  shopName:String,
  title:String,
  address: String,
  cost:String,
  price:String,
  remark:String,
  creatTime:Date,
  payTime:Date,
  deliveryTime:Date,
  successTime:Date,
  last_time:Date,
 
});

//创建模型对象  对文档操作的封装对象
let billModel = mongoose.model('bill', billSchema);

//暴露模型对象
module.exports = billModel;
